package com.exam.serviceimpl;

import com.exam.entity.*;
import com.exam.mapper.ProvideExamMapper;
import com.exam.service.ProvideExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProvideExamServiceImpl implements ProvideExamService {
    @Autowired
    private ProvideExamMapper provideExamMapper;

    @Override
    public List<ExamProgrammingQuestion> randomProgramming(int question_count,String score) {
        return provideExamMapper.randomProgramming(question_count,score);
    }

    @Override
    public List<ExamMultipleChoice> randomMultipleChoice(int question_count,String score) {
        return provideExamMapper.randomMultipleChoice(question_count,score);
    }

    @Override
    public List<ExamEssayQuestion> randomEssayQuestion(int question_count,String score) {
        return provideExamMapper.randomEssayQuestion(question_count,score);
    }

    @Override
    public List<ExamSingleChoice> randomSingleChoice(int question_count,String score) {
        return provideExamMapper.randomSingleChoice(question_count,score);
    }

    @Override
    public List<ExamTrueFalse> randomTrueFalse(int question_count,String score) {
        return provideExamMapper.randomTrueFalse(question_count,score);
    }
}
